package com.itheima.jianbing2;

public class JianBingTan {

    //锅上是否有煎饼
    private boolean exists = false;
    //锁对象 (锁对象可以是任意对象)  锁对象要保证唯一
    private final LiNing suo = new LiNing();
    //能够摊的煎饼的数量
    private int count = 10;

    public boolean isExists() {//判断是否存在
        return exists;
    }

    public void setExists(boolean exists) {
        this.exists = exists;
    }

    // 被final修饰的变量 不能有set方法
    public LiNing getSuo() {
        return suo;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
